home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / util / cli / UnixUtils.lha / UnixUtils / Source / pattern.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-04  |  2.9 KB  |  90 lines

  1. #ifndef LIBRARIES_PATTERN_H
  2. #define LIBRARIES_PATTERN_H
  3.  
  4. /*
  5. **
  6. **    $Filename: libraries/pattern.h $
  7. **    $Version: 5.00 $
  8. **    $Date: 92/01/28 $
  9. **
  10. **    pattern.library definitions and prototypes
  11. **
  12. **    (C) Copyright 1992 by Angela Schmidt, Neu-Ulm 8, Germany
  13. **        All Rights Reserved
  14. **
  15. */
  16.  
  17. #ifndef EXEC_TYPES_H
  18. #include <exec/types.h>
  19. #endif
  20.  
  21. #ifndef INTUITION_INTUITION_H
  22. #include <intuition/intuition.h>
  23. #endif
  24.  
  25.  
  26. #define Prototype extern    /* DICE likes this */
  27.  
  28.  
  29. /*****************\
  30. *** Definitions ***
  31. \*****************/
  32.  
  33. #define PATLIB_MIN_VERSION 5L        /* Version of the 1st library released    */
  34. #define PATLIB_ACT_VERSION 5L        /* Version of the actual library    */
  35.                     /* Please use PATLIB_MIN_VERSION    */
  36.                     /* in your sources whenever possible.    */
  37. #define PATLIB_REVISION 0L        /* Revision of the libray.        */
  38. #define PATLIB_NAME "pattern.library"    /* Name of this famous library        */
  39.  
  40.  
  41. /****************\
  42. *** Prototypes ***
  43. \****************/
  44.  
  45. Prototype void Surprise (struct Window *, LONG);
  46. Prototype STRPTR Str2Upper (STRPTR);
  47. Prototype STRPTR Str2Lower (STRPTR);
  48. Prototype UBYTE Char2Upper (UBYTE);
  49. Prototype UBYTE Char2Lower (UBYTE);
  50. Prototype LONG GetAllocCounter (void);
  51. Prototype LONG AllocPattern (STRPTR, ULONG);
  52. Prototype LONG AllocPatternNoCase (STRPTR, ULONG);
  53. Prototype LONG IsPattern (STRPTR, STRPTR, ULONG);
  54. Prototype STRPTR ESCPattern (STRPTR, STRPTR, ULONG);
  55. Prototype LONG MatchThePattern (LONG, STRPTR);
  56. Prototype void FreePattern (LONG);
  57. Prototype LONG SimpleMatch (STRPTR, STRPTR);
  58. Prototype LONG SimpleMatchNoCase (STRPTR, STRPTR);
  59. Prototype STRPTR PatternErrorString (LONG, STRPTR, STRPTR, ULONG);
  60. Prototype LONG PatternError2DOS (LONG);
  61. Prototype LONG XParsePattern (STRPTR, STRPTR, LONG);
  62. Prototype LONG XParsePatternNoCase (STRPTR, STRPTR, LONG);
  63. Prototype BOOL XMatchPattern (STRPTR, STRPTR);
  64. Prototype BOOL XMatchPatternNoCase (STRPTR, STRPTR);
  65.  
  66. /* "pattern.library"*/
  67. /*pragma libcall PatternBase ARexxFunction 1E 0*/
  68. #pragma libcall PatternBase Surprise 24 0802
  69. #pragma libcall PatternBase Str2Upper 2A 801
  70. #pragma libcall PatternBase Str2Lower 30 801
  71. #pragma libcall PatternBase Char2Upper 36 001
  72. #pragma libcall PatternBase Char2Lower 3C 001
  73. #pragma libcall PatternBase GetAllocCounter 42 0
  74. #pragma libcall PatternBase AllocPattern 48 0802
  75. #pragma libcall PatternBase AllocPatternNoCase 4E 0802
  76. #pragma libcall PatternBase IsPattern 54 09803
  77. #pragma libcall PatternBase ESCPattern 5A 09803
  78. #pragma libcall PatternBase MatchThePattern 60 8002
  79. #pragma libcall PatternBase FreePattern 66 001
  80. #pragma libcall PatternBase SimpleMatch 6C 9802
  81. #pragma libcall PatternBase SimpleMatchNoCase 72 9802
  82. #pragma libcall PatternBase PatternErrorString 78 198004
  83. #pragma libcall PatternBase PatternError2DOS 7E 001
  84. #pragma libcall PatternBase XParsePattern 84 32103
  85. #pragma libcall PatternBase XParsePatternNoCase 8A 32103
  86. #pragma libcall PatternBase XMatchPattern 90 2102
  87. #pragma libcall PatternBase XMatchPatternNoCase 96 2102
  88.  
  89. #endif /* LIBRARIES_PATTERN_H */
  90.